'use strict'

const log = require('npmlog')

// 判断debug模式
log.level = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : 'info'
// log.heading = 'imooc-yishen'
// log.headingStyle = {
//   fg: 'red',
//   bg: 'white',
// }
log.addLevel('success', 2000, { fg: 'green', bg: 'black', bold: true })

module.exports = log
